<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnDeliveryTimeInTaskTable extends AbstractMigration
{
    public function up()
    {
        $this->table('task')
            ->addColumn('delivery_time', 'integer', ['null' => false, 'limit' => 11, 'default' => 0, 'signed' => false, 'comment' => '交付时间'])
            ->save();

    }

    public function down()
    {
        $this->table('task')->removeColumn('delivery_time')->save();
    }
}
